//
//  DiaryDetailHeader.m
//  MyTrip
//
//  Created by zhang on 15/8/25.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "DiaryDetailHeader.h"

@implementation DiaryDetailHeader


- (void)dealloc
{
    [_startTime release];
    [_title release];
    [_authorName release];
    [_authorImage release];
    [_headerImage release];
    [super dealloc];
}

+ (instancetype) diaryDetailWithHeaderImage:(NSString *)headerImage authorImage:(NSString *)authorImage authorName:(NSString *)authorName title:(NSString *)title startTime:(NSString *)startTime days:(NSInteger)days mileage:(NSInteger)mileage like:(NSInteger)like{
    DiaryDetailHeader *diary = [[DiaryDetailHeader alloc] init];
    diary.headerImage = headerImage;
    diary.authorName = authorName;
    diary.authorImage = authorImage;
    diary.title = title;
    diary.startTime = startTime;
    diary.days = days;
    diary.mileage = mileage;
    diary.like = like;
    return [diary autorelease];
}



@end
